<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>头像修改</title>
        <link rel="stylesheet" type="text/css" href="assets/lib/layui/css/layui.css" />
        <link rel="stylesheet" href="assets/lib/cropper/cropper.css" />
        <link rel="stylesheet" type="text/css" href="assets/css/hedpic.css" />
        <script type="text/javascript" src="assets/lib/layui/layui.js"></script>
        <script src="assets/lib/jquery.js" type="text/javascript" charset="utf-8"></script>
        <script src="assets/lib/cropper/Cropper.js" type="text/javascript" charset="utf-8"></script>
        <script src="assets/lib/cropper/jquery-cropper.js" type="text/javascript" charset="utf-8"></script>
        <script src="assets/js/baseUrl.js"></script>
        <script src="assets/js/hedpic.js"></script>
    </head>
    <body>
        <!-- 卡片区域 -->
        <div class="layui-card">
            <div class="layui-card-header">更换头像</div>
            <div class="layui-card-body">
                <div class="outer-box">
                    <div class="cropper-box">
                        <img id="image" src="assets/images/sample.jpg" />
                    </div>

                    <!-- 预览区域 -->
                    <div class="preview-box">
                        <div class="img-preview w100"></div>
                        <p>100 x 100</p>
                        <div class="img-preview w50"></div>
                        <p>50 x 50</p>
                    </div>
                </div>
                <!-- 底部按钮区域 -->
                <div class="btns">
                    <input type="file" name="file" id="file" style="display: none;"/>
                    <button class="layui-btn" id="btnChooseImage">上传</button>
                    <button class="layui-btn layui-btn-danger" id="btnCreateAvatar">确定</button>
                </div>
            </div>
        </div>
      

    </body>
</html>
